package com.itheima.service;

import com.itheima.common.R;
import com.itheima.admin.pojo.Employee;

/**
 * @Author longbosheng
 * @Date 2022/6/14 18:54
 * @PackageName:com.itheima.service
 * @ClassName: EmployeeService
 * @Description: TODO
 * @Version 1.0
 */
public interface EmployeeService {
    /**
     * 登录
     * @param employee
     * @return
     */
    R login(Employee employee);

    /**
     * 添加员工
     * @param employee
     * @return
     */
    R insertEmployee(Employee employee);

    /**
     * 分页查询员工
     * @param name
     * @param page
     * @param pagesize
     * @return
     */
    R showEmployee(String name, int page, int pagesize);

    /**
     * 按id查询员工
     * @param id
     * @return
     */
    R selectEmployeeById(Integer id);

    /**
     * 更新员工
     * @param employee
     * @return
     */
    R updateEmployee(Employee employee);
}
